<template>
  <div>
    <h2>页面2</h2>
    <router-link to="/">123123</router-link>
    <div class="box">
      <el-input class="input" v-for="(item,index) in arr" :key="index" :value="item.value"></el-input>
    </div>

    <el-button @click="addClick()">+</el-button>
    
  </div>
</template>
<script>
export default {
  data() {
    return {
      arr: [
        {
          value: ""
        },
        {
          value: ""
        },
        {
          value: ""
        },
        {
          value: ""
        }
      ]
    };
  },

  methods: {
    addClick() {
      this.arr.push({
        value: ""
      });
    }
  },

  computed: {},

  created() {},

  mounted() {}
};
</script>
<style scoped>
.box {
  display: flex;
}
.input {
  width: 100px;
  margin: 0 10px;
}
</style>
